package initialize

import (
	"gin-vue-admin/server/plugin"
	"github.com/gin-gonic/gin"
)

func PluginInit(group *gin.RouterGroup, plugins ...plugin.Plugin) {
	for i := range plugins {
		routerGroup := group.Group(plugins[i].RouterPath())
		// 绑定到gin中
		plugins[i].Register(routerGroup)
	}
}
